package cn.webrx;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data @AllArgsConstructor @NoArgsConstructor
public class User implements Comparable<User>{
    private int id;
    private String name;
    private int score;

    @Override
    public int compareTo(User o) {
        return o.score - this.score;
    }

}
